package org.aj.entity;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 签约厂商
 * @author AJ
 */
@Entity
public class Vender extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	/**
	 * 签约状态
	 */
	public static final int STATUS_SIGNED = 1;
	
	/**
	 * 解约状态
	 */
	public static final int STATUS_NOT_SIGNED = 2;
	
	/**
	 * 厂商名
	 */
	private String name;
	
	/**
	 * 签约协议文件名
	 */
	private String contract;
	
	/**
	 * 1 - 签约
	 * 2 - 解约
	 */
	private int status = STATUS_SIGNED;
	
	/**
	 * 备注描述
	 */
	private String description;

	@Column(length = 90, nullable = false, unique = true)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column
	public String getContract() {
		return contract;
	}

	public void setContract(String contract) {
		this.contract = contract;
	}

	@Column
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Column(length = 10000)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
